package cuiyt.juc.reflaction;

/**
 * @author cyt
 * @create 2020-04-13 15:25
 */
public class Test02 {
    public static void main(String[] args) {
        // String
        Class<String> stringClass = String.class;

        System.out.println(stringClass);

        // Override
        Class<Override> overrideClass = Override.class;

        System.out.println(overrideClass);

        // int
        Class<Integer> integerClass = int.class;
        System.out.println(integerClass);

        // int []
        int[] a = new int[10];
        Class<? extends int[]> aClass = a.getClass();

        System.out.println(aClass);
        // int [][]
        int[][] b = new int[10][10];
        Class<? extends int[][]> bClass = b.getClass();
        System.out.println(bClass);

        // Comparable
        Class<Comparable> comparableClass = Comparable.class;
        System.out.println(comparableClass);

        int[] c = new int[10];
        int[] d = new int[100];

        System.out.println(d.getClass().hashCode());
        System.out.println(c.getClass().hashCode());

    }

}
